import HomePage from '@/views/HomePage.vue';
import LoginPage from '@/views/LoginPage.vue'
import RegisterPage from '@/views/RegisterPage.vue'
import form from '@/components/form/form.vue';
import component from 'element-plus/es/components/tree-select/src/tree-select-option.mjs';
// 登录控制路由
const LoginRegisterRoutes = [
  {
    path: '/',
    component: LoginPage,
  },
  {
    path: '/login',
    name: 'Login',
    component: LoginPage,
  },
  {
    path: '/register',
    name: 'Register',
    component: RegisterPage,
  },
  {
    path: '/home',
    name: 'Home',
    component: HomePage,
    children: [
      {
        path: '/studentForm',
        name: 'studentFotrm',
        component: form
      },
      {
        path: '/teacherForm',
        name: 'teacherFotrm',
        component: form
      },
      {
        path: '/test',
        name: 'test',
        component: LoginPage
      },
    ]
  }
]
const routes = [...LoginRegisterRoutes];
export default routes